/**
 *新增消息
 *
*/
import {
  http
} from '@/common/service.js'
//增加消息
// const addNews = (data) => {
// 	return http.post('message/xySysNews/add', {
// 		data
// 	})
// }
const  addNews= (header,datas,xySysReplyMessageList) => {
	return http.request({
		method: 'POST', // 请求方法必须大写 [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE]
		url: 'message/xySysNews/add',
		header,
		data: {
			content: datas.content,
			createTime: datas.createTime,
			tenderPrincipalId:datas.tenderPrincipalId,
			title:datas.title,
			status:datas.radio,
			tenderPrincipalId:datas.userAccount,
			xySysReplyMessageList:datas.xySysReplyMessageList
		},
	})
}
//查看部门
const  queryTreeList = (header) => {
	return http.get('/sys/sysDepart/queryTreeList',{
		header
	})
}
//查看部门人员
const  queryRoleList= (header,params) => {
	return http.get('sys/sysDepart/getUsersByDepartId',{
		header,
		params
	})
}

export default {
	addNews,
	queryTreeList,
	queryRoleList
}